import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

// 引入element_ui
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);

Vue.config.productionTip = false



Vue.prototype.$target = process.env.VUE_APP_ASSETS_URL

Vue.prototype.$globalData = {
  $categoryArr: []
}


import Global from "./Global"
Vue.use(Global);



//注册全局组件
import GoodsList from "./components/GoodsList";
Vue.component("GoodsList", GoodsList)

// 子组件
import MyMenu from './components/MyMenu';
Vue.component(MyMenu.name, MyMenu);

// 注册全局login
import Login from "./components/Login";
Vue.component("Login", Login)



new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')